package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Leveltype implements Serializable {
    private String ltid;

    private String ltname;

    private String ltddesc;

    private static final long serialVersionUID = 1L;

    public String getLtid() {
        return ltid;
    }

    public void setLtid(String ltid) {
        this.ltid = ltid;
    }

    public String getLtname() {
        return ltname;
    }

    public void setLtname(String ltname) {
        this.ltname = ltname;
    }

    public String getLtddesc() {
        return ltddesc;
    }

    public void setLtddesc(String ltddesc) {
        this.ltddesc = ltddesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Leveltype other = (Leveltype) that;
        return (this.getLtid() == null ? other.getLtid() == null : this.getLtid().equals(other.getLtid()))
            && (this.getLtname() == null ? other.getLtname() == null : this.getLtname().equals(other.getLtname()))
            && (this.getLtddesc() == null ? other.getLtddesc() == null : this.getLtddesc().equals(other.getLtddesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLtid() == null) ? 0 : getLtid().hashCode());
        result = prime * result + ((getLtname() == null) ? 0 : getLtname().hashCode());
        result = prime * result + ((getLtddesc() == null) ? 0 : getLtddesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ltid=").append(ltid);
        sb.append(", ltname=").append(ltname);
        sb.append(", ltddesc=").append(ltddesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}